package com.lostandfound.service;

import java.util.List;
import java.util.Map;

import com.lostandfound.entity.ThanksLetter;

public interface ThanksService extends BaseService<ThanksLetter> {
	
	/**
	 * 分页查询数据
	 * @param start
	 * @param size
	 * @return
	 */
	List<?> listThanksByPage(Map<String, Object> pagemap);
	
	/**
	 * 获取元素个数
	 * @return
	 */
	int Count(Map<String, Object> pagemap);
	
	/**
	 * 批量删除操作
	 * @param topics 需要删除的感谢信ID集合
	 */
	void deleteThanksByBranch(Long[] thanks);
	
	/**
	 * 删除由某个用户的感谢信
	 * @param uid
	 */
	void deleteThanksByUser(Long uid);
	
	/**
	 * 删除由某个主贴的感谢信
	 * @param uid
	 */
	void deleteThanksByTopic(Long tid);


}
